.class public Lorg/zeam/Preferences;
.super Landroid/preference/PreferenceActivity;
.source "Preferences.java"


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 18
    invoke-direct {p0}, Landroid/preference/PreferenceActivity;-><init>()V

    return-void
.end method

.method static synthetic access$0(Lorg/zeam/Preferences;I)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 152
    invoke-direct {p0, p1}, Lorg/zeam/Preferences;->loadAppsGridRowsColumns(I)V

    return-void
.end method

.method static synthetic access$1(Lorg/zeam/Preferences;)V
    .locals 0
    .parameter

    .prologue
    .line 271
    invoke-direct {p0}, Lorg/zeam/Preferences;->resetAlertRestart()V

    return-void
.end method

.method static alertRestart(Landroid/content/Context;)V
    .locals 3
    .parameter "context"

    .prologue
    .line 279
    new-instance v0, Landroid/app/AlertDialog$Builder;

    invoke-direct {v0, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setCancelable(Z)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    .line 280
    const v1, 0x7f0a007d

    invoke-virtual {p0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    .line 281
    const v1, 0x7f0a007e

    invoke-virtual {p0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    .line 282
    new-instance v2, Lorg/zeam/Preferences$15;

    invoke-direct {v2}, Lorg/zeam/Preferences$15;-><init>()V

    .line 281
    invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    .line 287
    invoke-virtual {v0}, Landroid/app/AlertDialog$Builder;->show()Landroid/app/AlertDialog;

    .line 288
    return-void
.end method

.method static getApplicationDataPath(Landroid/content/Context;)Ljava/lang/String;
    .locals 2
    .parameter "context"

    .prologue
    .line 304
    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "/data/data/"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "/"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method static getPreferencesFile(Landroid/content/Context;)Ljava/io/File;
    .locals 3
    .parameter "context"

    .prologue
    .line 296
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-static {p0}, Lorg/zeam/Preferences;->getApplicationDataPath(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 297
    const-string v2, "shared_prefs/"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {p0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    .line 298
    const-string v2, "_preferences.xml"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    .line 296
    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 300
    .local v0, path:Ljava/lang/String;
    new-instance v1, Ljava/io/File;

    invoke-direct {v1, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    return-object v1
.end method

.method private loadAppsGridRowsColumns(I)V
    .locals 10
    .parameter "appsGridType"

    .prologue
    const/4 v9, 0x0

    const/4 v8, 0x4

    const/4 v7, 0x0

    const/4 v6, 0x6

    const/4 v5, 0x1

    .line 156
    const v4, 0x7f0a0018

    invoke-virtual {p0, v4}, Lorg/zeam/Preferences;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {p0, v4}, Lorg/zeam/Preferences;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v3

    check-cast v3, Lorg/zeam/DialogSeekBarPreference;

    .line 157
    .local v3, appsGridContentRowsPortrait:Lorg/zeam/DialogSeekBarPreference;
    const v4, 0x7f0a0019

    invoke-virtual {p0, v4}, Lorg/zeam/Preferences;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {p0, v4}, Lorg/zeam/Preferences;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v1

    check-cast v1, Lorg/zeam/DialogSeekBarPreference;

    .line 158
    .local v1, appsGridContentColumnsPortrait:Lorg/zeam/DialogSeekBarPreference;
    const v4, 0x7f0a001a

    invoke-virtual {p0, v4}, Lorg/zeam/Preferences;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {p0, v4}, Lorg/zeam/Preferences;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v2

    check-cast v2, Lorg/zeam/DialogSeekBarPreference;

    .line 159
    .local v2, appsGridContentRowsLandscape:Lorg/zeam/DialogSeekBarPreference;
    const v4, 0x7f0a001b

    invoke-virtual {p0, v4}, Lorg/zeam/Preferences;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {p0, v4}, Lorg/zeam/Preferences;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v0

    check-cast v0, Lorg/zeam/DialogSeekBarPreference;

    .line 161
    .local v0, appsGridContentColumnsLandscape:Lorg/zeam/DialogSeekBarPreference;
    if-ne p1, v5, :cond_1

    .line 163
    invoke-virtual {v3, v7}, Lorg/zeam/DialogSeekBarPreference;->setEnabled(Z)V

    .line 164
    invoke-virtual {v2, v7}, Lorg/zeam/DialogSeekBarPreference;->setEnabled(Z)V

    .line 165
    invoke-virtual {v1, v5}, Lorg/zeam/DialogSeekBarPreference;->setEnabled(Z)V

    .line 166
    invoke-virtual {v0, v5}, Lorg/zeam/DialogSeekBarPreference;->setEnabled(Z)V

    .line 168
    invoke-virtual {v1, v8}, Lorg/zeam/DialogSeekBarPreference;->setMin(I)V

    .line 169
    invoke-virtual {v1, v6}, Lorg/zeam/DialogSeekBarPreference;->setMax(I)V

    .line 170
    invoke-virtual {v0, v8}, Lorg/zeam/DialogSeekBarPreference;->setMin(I)V

    .line 171
    invoke-virtual {v0, v6}, Lorg/zeam/DialogSeekBarPreference;->setMax(I)V

    .line 173
    invoke-static {p0}, Lorg/zeam/PreferencesUtil;->getAppsGridVerticalScrollingContentColumnsPortrait(Landroid/content/Context;)I

    move-result v4

    invoke-virtual {v1}, Lorg/zeam/DialogSeekBarPreference;->getMin()I

    move-result v5

    sub-int/2addr v4, v5

    invoke-virtual {v1, v4}, Lorg/zeam/DialogSeekBarPreference;->setValue(I)V

    .line 174
    invoke-static {p0}, Lorg/zeam/PreferencesUtil;->getAppsGridVerticalScrollingContentColumnsLandscape(Landroid/content/Context;)I

    move-result v4

    invoke-virtual {v0}, Lorg/zeam/DialogSeekBarPreference;->getMin()I

    move-result v5

    sub-int/2addr v4, v5

    invoke-virtual {v0, v4}, Lorg/zeam/DialogSeekBarPreference;->setValue(I)V

    .line 176
    invoke-virtual {v3, v9}, Lorg/zeam/DialogSeekBarPreference;->setOnPreferenceChangeListener(Landroid/preference/Preference$OnPreferenceChangeListener;)V

    .line 177
    invoke-virtual {v2, v9}, Lorg/zeam/DialogSeekBarPreference;->setOnPreferenceChangeListener(Landroid/preference/Preference$OnPreferenceChangeListener;)V

    .line 179
    new-instance v4, Lorg/zeam/Preferences$9;

    invoke-direct {v4, p0, v1}, Lorg/zeam/Preferences$9;-><init>(Lorg/zeam/Preferences;Lorg/zeam/DialogSeekBarPreference;)V

    invoke-virtual {v1, v4}, Lorg/zeam/DialogSeekBarPreference;->setOnPreferenceChangeListener(Landroid/preference/Preference$OnPreferenceChangeListener;)V

    .line 191
    new-instance v4, Lorg/zeam/Preferences$10;

    invoke-direct {v4, p0, v0}, Lorg/zeam/Preferences$10;-><init>(Lorg/zeam/Preferences;Lorg/zeam/DialogSeekBarPreference;)V

    invoke-virtual {v0, v4}, Lorg/zeam/DialogSeekBarPreference;->setOnPreferenceChangeListener(Landroid/preference/Preference$OnPreferenceChangeListener;)V

    .line 269
    :cond_0
    :goto_0
    return-void

    .line 203
    :cond_1
    const/4 v4, 0x2

    if-ne p1, v4, :cond_0

    .line 205
    invoke-virtual {v3, v5}, Lorg/zeam/DialogSeekBarPreference;->setEnabled(Z)V

    .line 206
    invoke-virtual {v1, v5}, Lorg/zeam/DialogSeekBarPreference;->setEnabled(Z)V

    .line 207
    invoke-virtual {v2, v5}, Lorg/zeam/DialogSeekBarPreference;->setEnabled(Z)V

    .line 208
    invoke-virtual {v0, v5}, Lorg/zeam/DialogSeekBarPreference;->setEnabled(Z)V

    .line 210
    invoke-virtual {v3, v5}, Lorg/zeam/DialogSeekBarPreference;->setMin(I)V

    .line 211
    invoke-virtual {v3, v6}, Lorg/zeam/DialogSeekBarPreference;->setMax(I)V

    .line 212
    invoke-virtual {v1, v5}, Lorg/zeam/DialogSeekBarPreference;->setMin(I)V

    .line 213
    invoke-virtual {v1, v6}, Lorg/zeam/DialogSeekBarPreference;->setMax(I)V

    .line 214
    invoke-virtual {v2, v5}, Lorg/zeam/DialogSeekBarPreference;->setMin(I)V

    .line 215
    const/4 v4, 0x5

    invoke-virtual {v2, v4}, Lorg/zeam/DialogSeekBarPreference;->setMax(I)V

    .line 216
    invoke-virtual {v0, v5}, Lorg/zeam/DialogSeekBarPreference;->setMin(I)V

    .line 217
    const/16 v4, 0x8

    invoke-virtual {v0, v4}, Lorg/zeam/DialogSeekBarPreference;->setMax(I)V

    .line 219
    invoke-static {p0}, Lorg/zeam/PreferencesUtil;->getAppsGridHorizontalPagingContentRowsPortrait(Landroid/content/Context;)I

    move-result v4

    invoke-virtual {v3}, Lorg/zeam/DialogSeekBarPreference;->getMin()I

    move-result v5

    sub-int/2addr v4, v5

    invoke-virtual {v3, v4}, Lorg/zeam/DialogSeekBarPreference;->setValue(I)V

    .line 220
    invoke-static {p0}, Lorg/zeam/PreferencesUtil;->getAppsGridHorizontalPagingContentColumnsPortrait(Landroid/content/Context;)I

    move-result v4

    invoke-virtual {v1}, Lorg/zeam/DialogSeekBarPreference;->getMin()I

    move-result v5

    sub-int/2addr v4, v5

    invoke-virtual {v1, v4}, Lorg/zeam/DialogSeekBarPreference;->setValue(I)V

    .line 221
    invoke-static {p0}, Lorg/zeam/PreferencesUtil;->getAppsGridHorizontalPagingContentRowsLandscape(Landroid/content/Context;)I

    move-result v4

    invoke-virtual {v2}, Lorg/zeam/DialogSeekBarPreference;->getMin()I

    move-result v5

    sub-int/2addr v4, v5

    invoke-virtual {v2, v4}, Lorg/zeam/DialogSeekBarPreference;->setValue(I)V

    .line 222
    invoke-static {p0}, Lorg/zeam/PreferencesUtil;->getAppsGridHorizontalPagingContentColumnsLandscape(Landroid/content/Context;)I

    move-result v4

    invoke-virtual {v0}, Lorg/zeam/DialogSeekBarPreference;->getMin()I

    move-result v5

    sub-int/2addr v4, v5

    invoke-virtual {v0, v4}, Lorg/zeam/DialogSeekBarPreference;->setValue(I)V

    .line 224
    new-instance v4, Lorg/zeam/Preferences$11;

    invoke-direct {v4, p0, v3}, Lorg/zeam/Preferences$11;-><init>(Lorg/zeam/Preferences;Lorg/zeam/DialogSeekBarPreference;)V

    invoke-virtual {v3, v4}, Lorg/zeam/DialogSeekBarPreference;->setOnPreferenceChangeListener(Landroid/preference/Preference$OnPreferenceChangeListener;)V

    .line 235
    new-instance v4, Lorg/zeam/Preferences$12;

    invoke-direct {v4, p0, v1}, Lorg/zeam/Preferences$12;-><init>(Lorg/zeam/Preferences;Lorg/zeam/DialogSeekBarPreference;)V

    invoke-virtual {v1, v4}, Lorg/zeam/DialogSeekBarPreference;->setOnPreferenceChangeListener(Landroid/preference/Preference$OnPreferenceChangeListener;)V

    .line 246
    new-instance v4, Lorg/zeam/Preferences$13;

    invoke-direct {v4, p0, v2}, Lorg/zeam/Preferences$13;-><init>(Lorg/zeam/Preferences;Lorg/zeam/DialogSeekBarPreference;)V

    invoke-virtual {v2, v4}, Lorg/zeam/DialogSeekBarPreference;->setOnPreferenceChangeListener(Landroid/preference/Preference$OnPreferenceChangeListener;)V

    .line 257
    new-instance v4, Lorg/zeam/Preferences$14;

    invoke-direct {v4, p0, v0}, Lorg/zeam/Preferences$14;-><init>(Lorg/zeam/Preferences;Lorg/zeam/DialogSeekBarPreference;)V

    invoke-virtual {v0, v4}, Lorg/zeam/DialogSeekBarPreference;->setOnPreferenceChangeListener(Landroid/preference/Preference$OnPreferenceChangeListener;)V

    goto :goto_0
.end method

.method private resetAlertRestart()V
    .locals 1

    .prologue
    .line 273
    invoke-static {p0}, Lorg/zeam/Preferences;->getPreferencesFile(Landroid/content/Context;)Ljava/io/File;

    move-result-object v0

    invoke-virtual {v0}, Ljava/io/File;->delete()Z

    .line 274
    invoke-static {p0}, Lorg/zeam/Preferences;->alertRestart(Landroid/content/Context;)V

    .line 275
    return-void
.end method

.method static restart()V
    .locals 1

    .prologue
    .line 291
    invoke-static {}, Landroid/os/Process;->myPid()I

    move-result v0

    invoke-static {v0}, Landroid/os/Process;->killProcess(I)V

    .line 292
    return-void
.end method


# virtual methods
.method protected onCreate(Landroid/os/Bundle;)V
    .locals 12
    .parameter "savedInstanceState"

    .prologue
    .line 23
    invoke-super {p0, p1}, Landroid/preference/PreferenceActivity;->onCreate(Landroid/os/Bundle;)V

    .line 24
    const v10, 0x7f050001

    invoke-virtual {p0, v10}, Lorg/zeam/Preferences;->addPreferencesFromResource(I)V

    .line 27
    new-instance v6, Lorg/zeam/Preferences$1;

    invoke-direct {v6, p0}, Lorg/zeam/Preferences$1;-><init>(Lorg/zeam/Preferences;)V

    .line 34
    .local v6, restartChangeListener:Landroid/preference/Preference$OnPreferenceChangeListener;
    new-instance v7, Lorg/zeam/Preferences$2;

    invoke-direct {v7, p0}, Lorg/zeam/Preferences$2;-><init>(Lorg/zeam/Preferences;)V

    .line 41
    .local v7, restartLoadersChangeListener:Landroid/preference/Preference$OnPreferenceChangeListener;
    const v10, 0x7f0a0003

    invoke-virtual {p0, v10}, Lorg/zeam/Preferences;->getString(I)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {p0, v10}, Lorg/zeam/Preferences;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v10

    .line 42
    invoke-virtual {v10, v6}, Landroid/preference/Preference;->setOnPreferenceChangeListener(Landroid/preference/Preference$OnPreferenceChangeListener;)V

    .line 43
    const v10, 0x7f0a0004

    invoke-virtual {p0, v10}, Lorg/zeam/Preferences;->getString(I)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {p0, v10}, Lorg/zeam/Preferences;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v10

    .line 44
    invoke-virtual {v10, v6}, Landroid/preference/Preference;->setOnPreferenceChangeListener(Landroid/preference/Preference$OnPreferenceChangeListener;)V

    .line 47
    const v10, 0x7f0a0005

    invoke-virtual {p0, v10}, Lorg/zeam/Preferences;->getString(I)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {p0, v10}, Lorg/zeam/Preferences;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v3

    .line 46
    check-cast v3, Lorg/zeam/DialogSeekBarPreference;

    .line 49
    .local v3, numberOfScreensPreference:Lorg/zeam/DialogSeekBarPreference;
    const v10, 0x7f0a0006

    invoke-virtual {p0, v10}, Lorg/zeam/Preferences;->getString(I)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {p0, v10}, Lorg/zeam/Preferences;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v2

    .line 48
    check-cast v2, Lorg/zeam/DialogSeekBarPreference;

    .line 51
    .local v2, defaultScreenPreference:Lorg/zeam/DialogSeekBarPreference;
    new-instance v10, Lorg/zeam/Preferences$3;

    invoke-direct {v10, p0, v2}, Lorg/zeam/Preferences$3;-><init>(Lorg/zeam/Preferences;Lorg/zeam/DialogSeekBarPreference;)V

    invoke-virtual {v3, v10}, Lorg/zeam/DialogSeekBarPreference;->setOnPreferenceChangeListener(Landroid/preference/Preference$OnPreferenceChangeListener;)V

    .line 66
    invoke-static {p0}, Lorg/zeam/PreferencesUtil;->getNumberOfScreens(Landroid/content/Context;)I

    move-result v10

    invoke-virtual {v2, v10}, Lorg/zeam/DialogSeekBarPreference;->setMax(I)V

    .line 67
    invoke-virtual {v2, v6}, Lorg/zeam/DialogSeekBarPreference;->setOnPreferenceChangeListener(Landroid/preference/Preference$OnPreferenceChangeListener;)V

    .line 70
    const v10, 0x7f0a000a

    invoke-virtual {p0, v10}, Lorg/zeam/Preferences;->getString(I)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {p0, v10}, Lorg/zeam/Preferences;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v9

    .line 69
    check-cast v9, Lorg/zeam/DialogSeekBarPreference;

    .line 72
    .local v9, workspaceRowsPreference:Lorg/zeam/DialogSeekBarPreference;
    const v10, 0x7f0a000b

    invoke-virtual {p0, v10}, Lorg/zeam/Preferences;->getString(I)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {p0, v10}, Lorg/zeam/Preferences;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v8

    .line 71
    check-cast v8, Lorg/zeam/DialogSeekBarPreference;

    .line 74
    .local v8, workspaceColumnsPreference:Lorg/zeam/DialogSeekBarPreference;
    invoke-virtual {v9, v6}, Lorg/zeam/DialogSeekBarPreference;->setOnPreferenceChangeListener(Landroid/preference/Preference$OnPreferenceChangeListener;)V

    .line 75
    invoke-virtual {v8, v6}, Lorg/zeam/DialogSeekBarPreference;->setOnPreferenceChangeListener(Landroid/preference/Preference$OnPreferenceChangeListener;)V

    .line 77
    const v10, 0x7f0a000c

    invoke-virtual {p0, v10}, Lorg/zeam/Preferences;->getString(I)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {p0, v10}, Lorg/zeam/Preferences;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v10

    .line 78
    invoke-virtual {v10, v6}, Landroid/preference/Preference;->setOnPreferenceChangeListener(Landroid/preference/Preference$OnPreferenceChangeListener;)V

    .line 79
    const v10, 0x7f0a000d

    invoke-virtual {p0, v10}, Lorg/zeam/Preferences;->getString(I)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {p0, v10}, Lorg/zeam/Preferences;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v10

    .line 80
    invoke-virtual {v10, v7}, Landroid/preference/Preference;->setOnPreferenceChangeListener(Landroid/preference/Preference$OnPreferenceChangeListener;)V

    .line 82
    invoke-static {p0}, Lorg/zeam/PreferencesUtil;->getAppsGridType(Landroid/content/Context;)I

    move-result v10

    invoke-direct {p0, v10}, Lorg/zeam/Preferences;->loadAppsGridRowsColumns(I)V

    .line 84
    const v10, 0x7f0a0014

    invoke-virtual {p0, v10}, Lorg/zeam/Preferences;->getString(I)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {p0, v10}, Lorg/zeam/Preferences;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v10

    .line 85
    new-instance v11, Lorg/zeam/Preferences$4;

    invoke-direct {v11, p0}, Lorg/zeam/Preferences$4;-><init>(Lorg/zeam/Preferences;)V

    invoke-virtual {v10, v11}, Landroid/preference/Preference;->setOnPreferenceChangeListener(Landroid/preference/Preference$OnPreferenceChangeListener;)V

    .line 95
    const v10, 0x7f0a0026

    invoke-virtual {p0, v10}, Lorg/zeam/Preferences;->getString(I)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {p0, v10}, Lorg/zeam/Preferences;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v10

    .line 96
    invoke-virtual {v10, v6}, Landroid/preference/Preference;->setOnPreferenceChangeListener(Landroid/preference/Preference$OnPreferenceChangeListener;)V

    .line 97
    const v10, 0x7f0a0025

    invoke-virtual {p0, v10}, Lorg/zeam/Preferences;->getString(I)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {p0, v10}, Lorg/zeam/Preferences;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v10

    .line 98
    invoke-virtual {v10, v6}, Landroid/preference/Preference;->setOnPreferenceChangeListener(Landroid/preference/Preference$OnPreferenceChangeListener;)V

    .line 100
    const v10, 0x7f0a0024

    invoke-virtual {p0, v10}, Lorg/zeam/Preferences;->getString(I)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {p0, v10}, Lorg/zeam/Preferences;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v5

    .line 101
    .local v5, resetTo:Landroid/preference/Preference;
    const v10, 0x7f0a0023

    invoke-virtual {p0, v10}, Lorg/zeam/Preferences;->getString(I)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {p0, v10}, Lorg/zeam/Preferences;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v10

    .line 102
    new-instance v11, Lorg/zeam/Preferences$5;

    invoke-direct {v11, p0, v5}, Lorg/zeam/Preferences$5;-><init>(Lorg/zeam/Preferences;Landroid/preference/Preference;)V

    invoke-virtual {v10, v11}, Landroid/preference/Preference;->setOnPreferenceChangeListener(Landroid/preference/Preference$OnPreferenceChangeListener;)V

    .line 110
    invoke-static {p0}, Lorg/zeam/PreferencesUtil;->getDockResetHome(Landroid/content/Context;)Z

    move-result v10

    invoke-virtual {v5, v10}, Landroid/preference/Preference;->setEnabled(Z)V

    .line 111
    const v10, 0x7f0a0027

    invoke-virtual {p0, v10}, Lorg/zeam/Preferences;->getString(I)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {p0, v10}, Lorg/zeam/Preferences;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v10

    .line 112
    new-instance v11, Lorg/zeam/Preferences$6;

    invoke-direct {v11, p0}, Lorg/zeam/Preferences$6;-><init>(Lorg/zeam/Preferences;)V

    invoke-virtual {v10, v11}, Landroid/preference/Preference;->setOnPreferenceClickListener(Landroid/preference/Preference$OnPreferenceClickListener;)V

    .line 120
    const v10, 0x7f0a0028

    invoke-virtual {p0, v10}, Lorg/zeam/Preferences;->getString(I)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {p0, v10}, Lorg/zeam/Preferences;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v4

    .line 121
    .local v4, resetPreference:Landroid/preference/Preference;
    new-instance v10, Lorg/zeam/Preferences$7;

    invoke-direct {v10, p0}, Lorg/zeam/Preferences$7;-><init>(Lorg/zeam/Preferences;)V

    invoke-virtual {v4, v10}, Landroid/preference/Preference;->setOnPreferenceClickListener(Landroid/preference/Preference$OnPreferenceClickListener;)V

    .line 138
    new-instance v10, Ljava/lang/StringBuilder;

    const v11, 0x7f0a0049

    invoke-virtual {p0, v11}, Lorg/zeam/Preferences;->getString(I)Ljava/lang/String;

    move-result-object v11

    invoke-static {v11}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v11

    invoke-direct {v10, v11}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v11, " "

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    .line 139
    invoke-static {p0}, Lorg/zeam/LauncherApplication;->getVersionName(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    .line 138
    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 141
    .local v0, application:Ljava/lang/CharSequence;
    const v10, 0x7f0a0029

    invoke-virtual {p0, v10}, Lorg/zeam/Preferences;->getString(I)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {p0, v10}, Lorg/zeam/Preferences;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v1

    .line 142
    .local v1, applicationPreference:Landroid/preference/Preference;
    invoke-virtual {v1, v0}, Landroid/preference/Preference;->setTitle(Ljava/lang/CharSequence;)V

    .line 143
    new-instance v10, Lorg/zeam/Preferences$8;

    invoke-direct {v10, p0}, Lorg/zeam/Preferences$8;-><init>(Lorg/zeam/Preferences;)V

    invoke-virtual {v1, v10}, Landroid/preference/Preference;->setOnPreferenceClickListener(Landroid/preference/Preference$OnPreferenceClickListener;)V

    .line 150
    return-void
.end method
